import spaceObject
import turret

class MiningDrone(spaceObject.CombatDroneLight):
    __guid__ = 'spaceObject.MiningDrone'

    def FitHardpoints(self):
        turretPair = turret.Turret_sc2()
        if (self.model.GetTurretLocatorCount() in (1, 2)):
            eveTurretPair = turretPair.Initialize('dsh111', 'locator_turret_1a', 'locator_turret_1b', 3000, overrideBeamGraphicID='mim111')
            self.model.turrets.append(eveTurretPair)
            self.modules[self.id] = turretPair
        else:
            slimItem = sm.StartService('michelle').GetBallpark().GetInvItem(self.id)
            self.LogError('TypeID', slimItem.typeID, 'has no turret locators')
        self.model.RebuildCachedLocatorIndices()



exports = {'spaceObject.MiningDrone': MiningDrone}

